<template>
	<view class="page">
		<view class="page__head">概览信息</view>
		<view class="page__list" v-for="item in data" :key="item.CnlCode">
			<view class="page__list--left">{{item.Name}}</view>
			<view class="page__list--right">
				<text>{{item.Val}}</text>
				<text style="margin-left: 10rpx;" v-show="item.Unit != '无'">{{item.Unit}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	import {setDotNumber} from '@/common/custom_util.js'
	
	export default {
		data() {
			return {
				data: []
			}
		},
		onLoad(options) {
			this.data = JSON.parse(options.data);
			this.data.forEach(item => {
				item.Val = setDotNumber(item.Val,3,true)
			})
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.page {
		background-color: #fff;
		margin-top: 20rpx;
		padding: 20rpx 40rpx;
		
		&__head {
			font-size: 35rpx;
			font-weight: bold;
			margin-bottom: 20rpx;
		}
		
		&__list {
			display: flex;
			justify-content: space-between;
			padding: 20rpx 0;
			border-bottom: 1rpx solid #eee;
		}
	}
</style>
